<?php
/**
 * 
 * dao 主类
 * @author kaihui_wang
 *
 */
class Home_Dao extends My_Dao{
	private static $_instance = null;

	public static function getInstance(){
		if(!self::$_instance){
			self::$_instance = new self();
		}
		return self::$_instance;
	}
	
	/**
	 * 
	 * @return Home_Dao_Common
	 */
	function getCommon(){
		return new Home_Dao_Common();
	}
	
	/**
	 * 日志
	 * @return Home_Dao_Logs
	 */
	function getLogs(){
		return new Home_Dao_Logs();
	}
	
	/**
	 * session db 保存
	 * @return Home_Dao_Sessions
	 */
	function getSessions(){
		return new Home_Dao_Sessions();
	}
}